package com.learn.threadpool;

import com.learn.threadpool.service.OrderService;
import lombok.extern.slf4j.Slf4j;
import org.junit.jupiter.api.Test;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;

import javax.annotation.Resource;

@Slf4j
@SpringBootTest(classes = ThreadPoolTaskExecutorApplicationTests.class )
class ThreadPoolTaskExecutorApplicationTests {

    @Autowired
    private OrderService orderService;


    @Test
    public void contextLoads() {


    }

    @Test
    public void batchTest() {
        int total = orderService.multiThread();

        log.info(total+"条数据!");
    }

}
